package com.example.catalog.entity;

import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import com.example.catalog.enums.CarTypeEnum;
import com.example.catalog.enums.StatusEnum;
import com.example.common.base.BaseEnum;
import com.example.common.handler.BaseEnumTypeHandler;
import lombok.Data;
import org.apache.ibatis.type.JdbcType;
import org.apache.ibatis.type.TypeHandlerRegistry;
import tk.mybatis.mapper.annotation.ColumnType;

/**
 * @description 汽车实体
 */
@Data
@Table(name = "t_car")
public class Car {

    private String id;

    /**
     * @description 汽车名称
     */
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY, generator = "select replace(uuid(), '-', '')")
    private String carName;

    /**
     * @description 汽车类型枚举
     */
    private CarTypeEnum carType;

    /**
     * @description 状态 0 停用，1 启用
     */
    private StatusEnum status;
}
